import Vue from 'vue'
import Router from 'vue-router'
import index from './views/index.vue'
import discover from './views/discover.vue'
import focus from './views/focus.vue'
import me from './views/me.vue'
import meRecord from './views/me/meRecord.vue'
import meCollent from './views/me/meCollent.vue'

Vue.use(Router)

export default new Router({
  // base: 
  routes: [
    {
      path: '/',
      name: 'index',
      component: index,
      meta: {title: '首页'}
    },
    {
      path: '/discover',
      name: 'discover',
      component: discover,
      meta: {title: '发现'}
    },
    {
      path: '/focus',
      name: 'focus',
      component: focus,
      meta: {title: '关注'}
    },
    {
      path: '/me',
      name: 'me',
      component: me,
      meta: {title: '我的'}
      // children: [
      //   {
      //     path: '/me/meRecord',
      //     name: 'meRecord',
      //     component: meRecord
      //   }
      // ]
    },
    {
      path: '/me/meRecord',
      name: 'meRecord',
      component: meRecord,
      meta: {title: '我的记录'}
    },
    {
      path: '/me/meCollent',
      name: 'meCollent',
      component: meCollent,
      meta: {title: '我的记录'}
    }
  ]
})